import request from '@/utils/request'

// 查询投放收录列表
export function listLaunch(query) {
  return request({
    url: '/system/launch/list',
    method: 'get',
    params: query
  })
}

// 查询投放收录详细
export function getLaunch(id) {
  return request({
    url: '/system/launch/' + id,
    method: 'get'
  })
}

// 新增投放收录
export function addLaunch(data) {
  return request({
    url: '/system/launch',
    method: 'post',
    data: data
  })
}

// 修改投放收录
export function updateLaunch(data) {
  return request({
    url: '/system/launch',
    method: 'put',
    data: data
  })
}

// 删除投放收录
export function delLaunch(id) {
  return request({
    url: '/system/launch/' + id,
    method: 'delete'
  })
}
